/*
 * @Author: yangy aidreams@sina.com
 * @Date: 2024-03-04 11:35:11
 * @LastEditors: yangy aidreams@sina.com
 * @LastEditTime: 2024-03-04 11:35:23
 * @FilePath: /vue3-framework/src/api/demo.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";

// get
export const getStatistic1 = () => {
  return request("/admin/statistics1", "get");
};

export const getImageClassList = (page) => {
  return request("/admin/image_class/" + page, "get");
};
// post

export const updateImage = (id, name) => {
  return request(`/admin/image/${id}`, "post", { name });
};

export const deleteImage = (ids) => {
  return request("/admin/image/delete_all", "post", { ids });
};
